#pragma once
//生成目录模板
//bin\$(PlatformTarget)\$(ConfigurationType)-$(CharacterSet)-mt\

#ifndef LUA_LIB_H
#define LUA_LIB_H

#ifdef libCharacter
#else
    #define libCharacter    "MultiByte"
#endif

#ifdef libPlatform
#else
    #define libPlatform     "x86"
#endif

#ifdef libType
#else
    #define libType         "StaticLibrary"
#endif

#ifdef libToolset
#else
    #define libToolset      "v120_xp"
#endif

#ifdef libGen
#else
    #define libGen          "mt"
#endif

#ifdef libGenR
#else
    #define libGenR         "mt"
#endif

//vs2010
#if _MSC_VER==1600
    #undef libToolset
    #define libToolset "v100"
// VS2022
#elif _MSC_VER > 1929
    #undef libToolset
    #define libToolset "v143"
// VS2019
#elif _MSC_VER > 1916
    #undef libToolset
    #define libToolset "v142"
// VS2017
#elif _MSC_VER>1900
	#undef libToolset
	#define libToolset "v141_xp"
// VS2015
#elif _MSC_VER > 1800
    #undef libToolset
    #define libToolset "v140_xp"
#endif

//x64
#if _WIN64
    #undef libPlatform
    #define libPlatform "x64"
#endif

//md
#ifdef _DLL
    #undef libGen
    #undef libGenR
    #define libGen  "md"
    #define libGenR "md"
    #define libType "DynamicLibrary"
#endif

//Unicode
#ifdef _UNICODE
    #undef libCharacter
    #define libCharacter "Unicode"
#endif

//mtd
#ifdef _DEBUG
    #undef libGen
    #define libGen libGenR##"d"
#endif

//x86/StaticLibrary-Unicode-mt
#define LIB_LUA libPlatform##"/"##libToolset##"-"##libType##"-"##libCharacter##"-"##libGen##"/"##"lua.lib"

#pragma message(LIB_LUA)
#pragma comment(lib, LIB_LUA)
#endif // LUA_LIB_H